package cn.itheima.dao;

import cn.itheima.domain.system.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by millions on 2017/7/20.
 */
public interface UserRepository extends JpaRepository<User,Integer>{

    void findByUsernameAndPassword(String username, String password);

    User findByUsername(String username);
}
